#!/usr/bin/python
print "Content-Type: text/html\n"
import cgi
import cgitb
import os
cgitb.enable()

print "<html>"
print "<head>"
print "<title> ptreb quadn cgi </title>"
print "</head>"
print "<body>"


form = cgi.FieldStorage() # inhalt query string
n = 20

if "n" in form:
   n = int(form["n"].value)

print [z**2 for z in range(1,n)]
print n
print "</body>"
print "</html>"